package com.lxmes.hr.mapper;

import java.util.List;
import com.lxmes.hr.domain.NcLeaveApprovalRules;

/**
 * 请假审批规则Mapper接口
 * 
 * @author lx
 * @date 2023-04-10
 */
public interface NcLeaveApprovalRulesMapper 
{
    /**
     * 查询请假审批规则
     * 
     * @param id 请假审批规则主键
     * @return 请假审批规则
     */
    public NcLeaveApprovalRules selectNcLeaveApprovalRulesById(Long id);

    /**
     * 查询请假审批规则列表
     * 
     * @param ncLeaveApprovalRules 请假审批规则
     * @return 请假审批规则集合
     */
    public List<NcLeaveApprovalRules> selectNcLeaveApprovalRulesList(NcLeaveApprovalRules ncLeaveApprovalRules);

    /**
     * 新增请假审批规则
     * 
     * @param ncLeaveApprovalRules 请假审批规则
     * @return 结果
     */
    public int insertNcLeaveApprovalRules(NcLeaveApprovalRules ncLeaveApprovalRules);

    /**
     * 修改请假审批规则
     * 
     * @param ncLeaveApprovalRules 请假审批规则
     * @return 结果
     */
    public int updateNcLeaveApprovalRules(NcLeaveApprovalRules ncLeaveApprovalRules);

    /**
     * 删除请假审批规则
     * 
     * @param id 请假审批规则主键
     * @return 结果
     */
    public int deleteNcLeaveApprovalRulesById(Long id);

    /**
     * 批量删除请假审批规则
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNcLeaveApprovalRulesByIds(Long[] ids);
}
